#!/bin/bash
# Copyrignt (c) xuzeshui.com. All Rights Reserved.
# Author: Zeshui Xu<i@xuzeshui.com>
# Created Time: 2016-09-05 18:40:31
# Last Modified: 2016-12-02 17:34:13
# File Name: feedback-usersubmit.sh
# Description: 


path="/washer/add"
params='
{
}
'

body='
{
    "washer_id":"qkleague-test-zxccvvnsdjkfsjkfj",
    "room_id":"washroom20161202172654o1A17L7qqZ",
    "imei":"aJKDHASKFHAK",
    "lng":"104.08296", 
    "lat":"38.65777", 
    "region_code":"440306008029", 
    "addr_detail":"广东省深圳市宝安区石岩街道创维工业园"
}
'

url=`python ../geturl.py "${path}" "${params}"`
curl -v -k -H "host: qkleague.app.doubimeizhi.com"  -d "${body}" "${url}"


curl -v -k -H "host:  qkleague.app.doubimeizhi.com" -d '{"washer_id":"zxccvvnsdjkfsjkfj","room_id":"20161105150754tQsWrhv333","imei":"aJKDHASKFHAKDGHLKSJG","lng":"104.08296", "lat":"38.65777", "region_code":"440306008029", "addr_detail":"广东省深圳市宝安区石岩街道创维工业园"}'  "${url}"
